import api from "../api.js" //先导入封装好的

//轮播图 1首页 2认养页
const banner = async (param) => {
	let data = await api.api({
		url: "/jeecg-boot/api/adopt/banner/"+param,
		// method: "POST",
		// data: param
	})
	return data
}
//上传图片
const uploadFile = async (param) => {
	let data = await api.api({
		url: "/jeecg-boot/sys/oss/file/uploadFile",
		method: "POST",
		type:'multipart/form-data',
		data: param
	})
	return data
}
//消息列表
const messages = async (param) => {
	let data = await api.api({
		url: "/jeecg-boot/api/adopt/messages",
		data: param
	})
	return data
}

export {
	banner,
	uploadFile,
	messages
}